/*
 * @Date: 2024-04-23 15:54:40
 * @LastEditors: 王帅 1677191300@qq.com
 * @LastEditTime: 2024-06-26 17:08:50
 * @FilePath: \pcVue3\src\router\index.ts
 * @Description: 
 */
import { createRouter, createWebHistory,createWebHashHistory } from "vue-router";
import LayoutRouter from "@/router/router"
import {recursionLiftRouter,recursionNeatenRouter} from "./neatenRouter"
// @ts-ignore
import MainLayout from "@/layout/MainLayout.vue"
const routes: any = [
  {
    path: "/",
    component: MainLayout,
    children:recursionNeatenRouter(recursionLiftRouter(LayoutRouter),"/") ,
  }
];
const router = createRouter({
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes,
});
export default router;